package com.qijian.quality.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qijian.quality.domain.InspectionResultRecord;
import com.qijian.quality.domain.query.InspectionResultRecordQuery;
import com.qijian.quality.domain.vo.InspectionResultRecordDetailVo;
import com.qijian.quality.domain.vo.InspectionResultRecordVo;

import java.util.List;

/**
 * 质检结果记录Service接口
 *
 * @author qijian
 * @date 2025-03-28
 */
public interface IInspectionResultRecordService extends IService<InspectionResultRecord> {

    Page<InspectionResultRecordVo> pageVo(Page<InspectionResultRecord> page, QueryWrapper<InspectionResultRecordQuery> query);

    /**
     * 保存巡检数据
     * @param inspectionResultRecordVo
     * @return
     */
    Boolean savePatrolInspection(InspectionResultRecordVo inspectionResultRecordVo);

    /**
     * 获取质检数据
     * @param id
     * @return
     */
    List<InspectionResultRecordDetailVo> getInspectionData(Long id);
}
